<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title></title>
</head>
<body>
		<div id="app">
			<label for="uname">用户名:</label><input type="text" id="uname" v-model.lazy="obj.name" />
		</div>
		
		
		<script src="js/v2.6.10/vue.js" type="text/javascript" charset="utf-8"></script>
		
		<script type="text/javascript">
			let myApp = new Vue({
				el:'#app',
				data:{
					obj:{
						name:'zs',
						age:11
					}
				},
				methods:{
					
				},
				computed:{},
				watch:{
					obj:{
						handler(val){
							this.obj.name = val
						},
						deep:true
					}
				}
			})
			
		</script>
</body>
</html>